<template>
  <div class="toast-container" v-show='show'>
    <div class="mask"></div>
    <div class="content">{{text}}--接收属性--{{word}}</div>
  </div>
</template>

<script>
export default {
  name: 'Toast'
}
</script>

<style lang="less" scoped>
.toast-container {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;

  .mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: #ccc;
    opacity: 0.67;
  }

  .content {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    text-align: center;
  }
}
</style>
